package com.fuint.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.framework.pagination.PaginationRequest;
import com.fuint.framework.pagination.PaginationResponse;
import com.fuint.repository.model.MtExamMember;
import com.fuint.framework.exception.BusinessCheckException;
import java.util.List;
import java.util.Map;

/**
 * 成员信息表业务接口
 *
 * Created by fqs
 * CopyRight https://www.fuint.cn
 */
public interface ExamMemberService extends IService<MtExamMember> {

    /**
     * 分页查询列表
     *
     * @param paginationRequest
     * @return
     */
    PaginationResponse<MtExamMember> queryExamMemberListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;

    /**
     * 添加成员信息表
     *
     * @param  mtExamMember
     * @throws BusinessCheckException
     * @return
     */
    MtExamMember addExamMember(MtExamMember mtExamMember) throws BusinessCheckException;

    /**
     * 根据ID获取成员信息表信息
     *
     * @param id ID
     * @throws BusinessCheckException
     * @return
     */
    MtExamMember queryExamMemberById(Integer id) throws BusinessCheckException;

    /**
     * 根据ID删除成员信息表
     *
     * @param id ID
     * @param operator 操作人
     * @throws BusinessCheckException
     * @return
     */
    void deleteExamMember(Integer id, String operator) throws BusinessCheckException;

    /**
     * 更新成员信息表
     * @param  mtExamMember
     * @throws BusinessCheckException
     * @return
     * */
    MtExamMember updateExamMember(MtExamMember mtExamMember) throws BusinessCheckException;

    /**
     * 根据条件搜索成员信息表
     *
     * @param params 查询参数
     * @throws BusinessCheckException
     * @return
     * */
    List<MtExamMember> queryExamMemberListByParams(Map<String, Object> params) throws BusinessCheckException;
}
